﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;

namespace OFB.BLL.Repository
{
    public interface ISubjectBLL
    {
        ICollection<Subject> FindAll(int startRow, int maxRow, out int totalRow);
        
        ICollection<Subject> Filter(bool? status, int startRow, int maxRow, out int totalRow, string subCode = null, string subName = null, int? subId = null, string searchString = null);
        
        int CreateSubject(string subCode,string subName, string description);
        
        Subject GetBySubjectId(int subId);
        
        void UpdateSubject(int subId, string subCode, string subName, string description);
        
        void ChangeStatus(int subId);
        
        ICollection<Subject> CheckSubjectName(string subName);
        
        ICollection<Subject> CheckSubjectCode(string subCode);
    }
}
